#pragma once
#include <vector>
#include <assert.h>

class cQuadVertexObj;

class cEffectSprite
{
public:
	cEffectSprite( void );
	~cEffectSprite( void );

	void Init( const char* szFileName, UINT ColNum, UINT RowNum, UINT Dumy, D3DCOLOR color );
	void release();

	void PreRender();
	void PostRender();
	void Render( FLOAT x, FLOAT y, FLOAT z, float scale );

private:
	LPDIRECT3DTEXTURE9			  mpTexture;
	UINT												  uiCurrentCnt;
	std::vector<cQuadVertexObj*> mFrames;
};
